I occasionally get the same issue, only it tends to happen to me when I've been AFK for a while and my wireless network connection went on the fritz.
I'd submit a ticket to Anet on this one, and if you're on a wireless connection, try running a cable between your internet connection (i.e. router or modem) and your computer and see if it persists.
__________________
|